package com.ruoyi.community.mapper;

import java.util.List;
import com.ruoyi.community.domain.OwnerActivityEnroll;
import org.apache.ibatis.annotations.Param;

/**
 * 活动报名记录Mapper接口
 * 
 * @author ruoyi
 * @date 2021-09-27
 */
public interface OwnerActivityEnrollMapper
{

    public OwnerActivityEnroll selectOwnerActivityEnrollById(String id);

    public List<OwnerActivityEnroll> selectOwnerActivityEnrollList(OwnerActivityEnroll ownerActivityEnroll);

    // 查询活动id对应的报名记录
    public List<OwnerActivityEnroll> selectOwnerActivityEnrollListById(String id);

    public int insertOwnerActivityEnroll(OwnerActivityEnroll ownerActivityEnroll);

    public Integer hasEnrolled(@Param("userId") String userId,
                            @Param("activityId") String activityId);

    public int updateOwnerActivityEnroll(OwnerActivityEnroll ownerActivityEnroll);

    public int deleteOwnerActivityEnrollById(String id);

    public int deleteOwnerActivityEnrollByIds(String[] ids);
}
